import { ajax } from '../http.js';

const findByCategoryUrl = '/product_b2b/find_by_category';
const searchGoodsUrl = '/product_b2b/search';

const findByCategory = (data, success, fail) => // 按类目检索商品
  ajax({
    url: findByCategoryUrl,
    data: data,
    success: success,
    fail: fail
  });
  const searchGoods = (data, success, fail) => // 搜索商品
    ajax({
      url: searchGoodsUrl,
      data: data,
      success: success,
      fail: fail
    });
export {
  findByCategory,
  searchGoods
}